package com.ss.android.article.browser.download.a;

import android.webkit.URLUtil;

import com.ss.android.article.browser.database.a.b;
import com.ss.android.article.browser.download.DownloadTaskManager;
import com.ss.android.article.browser.download.internal.DownloadTask;
import com.ss.android.article.browser.preference.PreferenceManager;

public class a {
    private static a a;

    private a() {
        b.a();
    }

    public static a a() {
        if (a == null) {
            Class v1 = a.class;
            synchronized (v1) {
                if (a == null) {
                    a = new a();
                }
            }
        }
        return a;
    }

    public static void a(String arg7) {
        String v5 = null;
        DownloadTaskManager v6 = DownloadTaskManager.getInstance();
        if (URLUtil.isNetworkUrl(arg7)) {
            String v3 = URLUtil.guessFileName(arg7, v5, v5);
            DownloadTask v0 = new DownloadTask(arg7, PreferenceManager.getInstance().getDownloadLocation(), v3, v3, v5);
            v0.createTime = System.currentTimeMillis();
            v6.a(v0, true);
        }
    }
}

